/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements. See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.inlong.agent.plugin.utils.file;

/*
 * Describe the nearest character around the date time expression. For example, for date source name
 * work/[0-9]+_YYYYMMDD_[0-9]+.log, the nearest character around YYYYMMDD is _, and this source name
 * has _ before and after it. For this data source name, the NonRegexPatternPosition should be BOTH.
 */
public enum NonRegexPatternPosition {
    NONE, /* Before and after the time expression are all regex pattern, it's invalid. */

    PREFIX, /* Before the time expression is not a regex pattern. */

    SUFFIX, /* After the time expression is not a regex pattern. */

    END, /*
          * After the time expression is not a regex pattern and he is end etc:/data/work/[0-9]+YYYYMMDD
          */

    ENDSUFFIX, /*
                * After the time expression is not a regex pattern and he is end etc:/data/work/YYYYMMDD
                */

    BOTH; /* Both before and after the time expression are not regex pattern. */
}
